package com.study.cycle;

import org.springframework.context.ApplicationContext;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @Author tanglingyu
 * @Date: 2021/08/16/ 10:27
 * @Description
 */
@Configuration
public class TestConfiguration extends TestSupport {

//  @Bean
//  public Test1 test1(Test2 test2) {
//    System.out.println(test2);
//    return new Test1();
//  }
//
//  @Bean
//  public Test2 test2() {
//    final ApplicationContext applicationContext = getApplicationContext();
//    applicationContext.getBean("test1");
//    return new Test2();
//  }
}
